

const {
  app,
  BrowserWindow
} = require('electron')
const isDev = require('electron-is-dev')
const path = require('path')

let win
function create(){
  app.allowRendererProcessReuse=false
  win = new BrowserWindow({
    width: 600,
    height: 300,
    webPreferences: {
      nodeIntegration: true,
      contextIsolation: false
    }
  })

  win.loadURL(path.resolve(__dirname, '../../renderer/pages/control/index.html'))
  
}

module.exports={create}